<?php
header("content-type:text/html;charset=utf8");
$con = mysqli_connect("localhost","root","root","one");
mysqli_query($con,"set names utf8");
$id = $_POST["id"];
$res = mysqli_query($con,"select * from clothes where id={$id}");
$row = mysqli_fetch_assoc($res);
echo json_encode($row);